package com.song.mapper;

import com.song.dto.DishPageQueryDTO;
import com.song.entity.DishFlavor;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FlavorMapper {
    //批量插入菜品口味数据
    Integer addFlavor(List<DishFlavor> dishFlavors);

    //条件查询菜品，获取其中菜品的口味列表
    List<DishFlavor> getDishFlavorList(DishPageQueryDTO dishPageQueryDTO);

    //根据菜品ids批量删除口味数据
    Integer deleteDishFlavor(List<Long> ids);

    //根据菜品id查询菜品口味数据
    List<DishFlavor> getFlavorListByDishId(Long dishId);
}
